package com.ce.pms.occupation.model;

// Generated 2008-12-24 13:41:51 by Hibernate Tools 3.2.0.b9

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.ce.pms.system.occupation.model.PerfectItemTypeConfigDO;
import com.sitechasia.webx.core.model.IDomainObject;

/**
 * 实体名称: 整改项目登记 关联数据表:OM_PERFECT_ITEM_REQUISITION
 *
 * @author yandawei
 * @CreateDate:2008-12-24
 */
@Entity
@Table(name = "OM_PERFECT_ITEM_REQUISITION")
public class PerfectItemRequisitionDO implements IDomainObject {

	/**
	 * 主键
	 */
	@Id
	@GeneratedValue
	@Column(name = "PERFECT_ITEM_REQUISITION_ID", unique = true, nullable = false)
	private Long keyword;

	/**
	 * 整改项目类型
	 */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "PERFECT_ITEM_TYPE_ID", nullable = false)
	private PerfectItemTypeConfigDO perfectItemTypeConfig;

	/**
	 * 整改项目派工
	 */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "PERFECT_ITEM_DISPATCH_ID")
	private PerfectItemDispatchDO perfectItemDispatch;

	/**
	 * 验房对象
	 */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "INSPECTION_REQUISITION_ID", nullable = false)
	private InspecteRequisiteDO inspectionRequisition;

	/**
	 * 房号
	 */
	@Column(name = "HOUSE_NUMBER", nullable = false, length = 36)
	private String houseNumber;

	/**
	 * 业主姓名，多个业主以逗号分开
	 */
	@Column(name = "OWNER_NAME", nullable = false, length = 200)
	private String owners;

	/**
	 * 入伙模式 001 以产权房办理入伙 002 以管理房办理入伙
	 */
	@Column(name = "JOIN_MODE", nullable = false, length = 3)
	private String joinMode;

	/**
	 * 整改申请日期
	 */
	@Temporal(TemporalType.DATE)
	@Column(name = "PERFECT_REQUISITION_DATE", nullable = false, length = 19)
	private Date perfectRequisitionDate;

	/**
	 * 问题描述
	 */
	@Column(name = "DESCRIPTION", nullable = false, length = 200)
	private String description;

	/**
	 * 期望结果
	 */
	@Column(name = "EXPECTATION_RESULT", length = 100)
	private String expectationResult;

	/**
	 * 是否已派工 1 ：已派工 0 ：未派工
	 */
	@Column(name = "DISPATCH_YN", length = 1)
	private String dispatchYn="0";

	/**
	 * 该项目是否完工 1 : 完工 0 : 未完工
	 */
	@Column(name = "COMPLETE_YN", length = 1)
	private String completeYn="0";

	public PerfectItemRequisitionDO() {
	}

	public PerfectItemRequisitionDO(Long keyword) {
		this.keyword = keyword;
	}

	public String getHouseNumber() {
		return houseNumber;
	}

	public void setHouseNumber(String houseNumber) {
		this.houseNumber = houseNumber;
	}

	public InspecteRequisiteDO getInspectionRequisition() {
		return inspectionRequisition;
	}

	public void setInspectionRequisition(
			InspecteRequisiteDO inspectionRequisition) {
		this.inspectionRequisition = inspectionRequisition;
	}

	public Long getKeyword() {
		return keyword;
	}

	public void setKeyword(Long keyword) {
		this.keyword = keyword;
	}

	public PerfectItemDispatchDO getPerfectItemDispatch() {
		return perfectItemDispatch;
	}

	public void setPerfectItemDispatch(PerfectItemDispatchDO perfectItemDispatch) {
		this.perfectItemDispatch = perfectItemDispatch;
	}

	public PerfectItemTypeConfigDO getPerfectItemTypeConfig() {
		return perfectItemTypeConfig;
	}

	public void setPerfectItemTypeConfig(
			PerfectItemTypeConfigDO perfectItemTypeConfig) {
		this.perfectItemTypeConfig = perfectItemTypeConfig;
	}

	public String getJoinMode() {
		return this.joinMode;
	}

	public void setJoinMode(String joinMode) {
		this.joinMode = joinMode;
	}

	public Date getPerfectRequisitionDate() {
		return this.perfectRequisitionDate;
	}

	public void setPerfectRequisitionDate(Date perfectRequisitionDate) {
		this.perfectRequisitionDate = perfectRequisitionDate;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getExpectationResult() {
		return this.expectationResult;
	}

	public void setExpectationResult(String expectationResult) {
		this.expectationResult = expectationResult;
	}

	public String getDispatchYn() {
		return this.dispatchYn;
	}

	public void setDispatchYn(String dispatchYn) {
		this.dispatchYn = dispatchYn;
	}

	public String getCompleteYn() {
		return this.completeYn;
	}

	public void setCompleteYn(String completeYn) {
		this.completeYn = completeYn;
	}

	public String getOwners() {
		return owners;
	}

	public void setOwners(String owners) {
		this.owners = owners;
	}

}
